
if [ ! -d libunwind-1.0.1 ]; then 
	git clone https://git.oschina.net/wr4ng1er/libunwind-1.0.1.git
else
	echo "libunwind-1.0.1 file exit"
fi 

cd libunwind-1.0.1
./configure --prefix=/opt/libunwind -enable-shared	&& make && make install
echo 'export PATH=$PATH:/opt/libunwind/bin'>>/etc/profile && source /etc/profile

echo '/opt/libunwind/lib' >> /etc/ld.so.conf.d/libunwind.conf
echo '/opt/libunwind/include' >> /etc/ld.so.conf.d/libunwind.conf
sudo /sbin/ldconfig

